package com.fm.common.base

/**
 *
 * @Author:         ly2
 * @CreateDate:     2020/12/28
 * @Description:
 *
 */
abstract class BasePresenter<I : IView> : IPresenter {
    protected var mView: I? = null

    override fun attachView(view: IView) {
        @Suppress("UNCHECKED_CAST")
        mView = view as I
    }

    override fun detachView() {
        mView = null
    }

}